// You do not need to save a reference to HTMLPanel when you define your class

Ext.define('app.view.portlet.HTMLPanel', {
    extend: 'Ext.panel.Panel',

    // We are using Ext.Ajax, so we should require it
    requires: ['Ext.Ajax'],
	
	alias: 'widget.HTMLPanel',

    config: {
		url: null
    },
	
	initComponent: function(){
		var panel = this;	
		Ext.Ajax.request({
			url: panel.getUrl(),
			method: "GET",
			success: function(response, request) {
				panel.update(response.responseText);
			},
			failure: function(response, request) {
				alert("failed -- response: " + response.responseText);
			}
		});
        this.callParent(arguments);
    }
});